var app=angular.module("myApp",["ngRoute","ui.bootstrap"]);
app.config(['$routeProvider', function ($routeProvider){
          $routeProvider
           .when('/main', {
                  templateUrl: './main/index.html',
                  controller: 'mainController',
                  controllerAs: 'vm'
              })
           .when('/information', {
            templateUrl: './home/information/information.html',
            controller: 'aController',
            controllerAs: 'vm'
          })
          .when('/modify', {
                  templateUrl: './home/modify/modify.html',
                  controller: 'modifyController',
                  controllerAs: 'vm'
          })
           .when('/book', {
            templateUrl: './home/book/book.html',
            controller: 'bookController',
            controllerAs: 'vm'
          })
          .when('/onetoonedaily', {
            templateUrl: './examine/onetoonedaily/onetoonedaily.html',
            controller: 'onetoonedailyController',
            controllerAs: 'vm'
           })
          .when('/onetoonewithdraw', {
            templateUrl: './examine/onetoonewithdraw/onetoonewithdraw.html',
            controller: 'onetoonewithdrawController',
            controllerAs: 'vm'
          })
          .when('/onetoonepay', {
            templateUrl: './examine/onetoonepay/onetoonepay.html',
            controller: 'onetoonepayController',
            controllerAs: 'vm'
          })
          .when('/classdaily', {
            templateUrl: './examine/classdaily/classdaily.html',
            controller: 'classdailyController',
            controllerAs: 'vm'
          })
          .when('/classwithdraw', {
            templateUrl: './examine/classwithdraw/classwithdraw.html',
            controller: 'classwithdrawController',
            controllerAs: 'vm'
          })
          .when('/classpay', {
            templateUrl: './examine/classpay/classpay.html',
            controller: 'classpayController',
            controllerAs: 'vm'
          })
          .when('/Daily', {
            templateUrl: './recruit/Daily/Daily.html',
            controller: 'DailyController',
            controllerAs: 'vm'
          })
          .when('/revise/:id', {
            templateUrl: './recruit/transfer/revise/revise.html',
            controller: 'reviseController',
            controllerAs: 'vm'
          })
          .when('/check/:id', {
            templateUrl: './recruit/transfer/check/check.html',
            controller: 'checkController',
            controllerAs: 'vm'
          })
          .when('/transfer', {
            templateUrl: './recruit/transfer/transfer.html',
            controller: 'transferController',
            controllerAs: 'vm'
           })
          .when('/transfer-daily/:id/:class_name/:class_id', {
            templateUrl: './recruit/change/transfer-daily/transfer-daily.html',
            controller: 'transfer-dailyController',
            controllerAs: 'vm'
          })
          .when('/teachingschedule/:id/:teach_5a_hour_surplus/:teach_8a_hour_surplus/:teach_director_hour_surplus', {
            templateUrl: './recruit/transfer/teachingschedule/teachingschedule.html',
            controller: 'teachingscheduleController',
            controllerAs: 'vm'
          })

         .when('/change', {
            templateUrl: './recruit/change/change.html',
            controller: 'changeController',
            controllerAs: 'vm'
         })
         .when('/personal_class/:id', {
                  templateUrl: './recruit/Daily/personal_class/personal_class.html',
                  controller: 'personalclassController',
                  controllerAs: 'vm'
         })
         .when('/personal_onetoone/:id', {
                  templateUrl: './recruit/Daily/personal_onetoone/personal_onetoone.html',
                  controller: 'personalonetooneController',
                  controllerAs: 'vm'
         })
         .when('/reviseclass/:id/:class_name', {
            templateUrl: './recruit/change/reviseclass/reviseclass.html',
            controller: 'reviseclassController',
            controllerAs: 'vm'
         })
         .when('/checkclass/:id/:class_name', {
           templateUrl: './recruit/change/checkclass/checkclass.html',
           controller: 'checkclassController',
           controllerAs: 'vm'
         })

              .when('/paymethod', {
                  templateUrl: './finance/paymethod/paymethod.html',
                  controller: 'paymethodController',
                  controllerAs: 'vm'
              })
              .when('/payrecord', {
                  templateUrl: './finance/payrecord/payrecord.html',
                  controller: 'payrecordController',
                  controllerAs: 'vm'
              })
              .when('/subject/', {
                  templateUrl: './teaching/subject/subject.html',
                  controller: 'subjectController',
                  controllerAs: 'vm'
              })
              .when('/teaching-subjects/:id/:name', {
                  templateUrl: './teaching/subject/teaching-subjects/teaching-subjects.html',
                  controller: 'teaching-subjectsController',
                  controllerAs: 'vm'
              })
              .when('/school', {
                  templateUrl: './teaching/school/school.html',
                  controller: 'schoolController',
                  controllerAs: 'vm'
              })
              .when('/grade', {
                  templateUrl: './teaching/grade/grade.html',
                  controller: 'gradeController',
                  controllerAs: 'vm'
              })
              .when('/class', {
                  templateUrl: './teaching/class/class.html',
                  controller: 'classController',
                  controllerAs: 'vm'
              })
              .when('/class-subject/:id/:name', {
                  templateUrl: './teaching/class/class-subject/class-subject.html',
                  controller: 'class-subjectController',
                  controllerAs: 'vm'
              })
              .when('/staff', {
                  templateUrl: './backstage/staff/staff.html',
                  controller: 'staffController',
                  controllerAs: 'vm'
              })
              .when('/role', {
                  templateUrl: './backstage/role/role.html',
                  controller: 'roleController',
                  controllerAs: 'vm'
              })
              .when('/onetoone-discount', {
                  templateUrl: './backstage/onetoone-discount/onetoone-discount.html',
                  controller: 'onetoone-discountController',
                  controllerAs: 'vm'
              })
              .when('/class-discount', {
                  templateUrl: './backstage/class-discount/class-discount.html',
                  controller: 'class-discountController',
                  controllerAs: 'vm'
              })
              .when('/one to one', {
                  templateUrl: './paike/one to one/one to one.html',
                  controller: 'oneToOnellController',
                  controllerAs: 'vm'
              })
              .when('/day', {
                  templateUrl: './schedule/day/day.html',
                  controller: 'dayController',
                  controllerAs: 'vm'
              })
              .when('/schedule', {
                  templateUrl: './schedule/schedule/schedule.html',
                  controller: 'scheduleController',
                  controllerAs: 'vm'
              })
              .when('/sign/:id', {
                  templateUrl: './schedule/day/sign/sign.html',
                  controller: 'signController',
                  controllerAs: 'vm'
              })
              .when('/punch', {
                  templateUrl: './punch/punch.html',
                  controller: 'punchController',
                  controllerAs: 'vm'
              })
              .when('/upload', {
                  templateUrl: './upload/upload.html',
                  controller: 'uploadController',
                  controllerAs: 'vm'
              })
          .otherwise({
            redirectTo: '/main'
          });
   }]); 